home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3055 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.5 KB  |  34 lines

  1. Newsgroups: comp.lang.c
  2. Path: newsfeed.acns.nwu.edu!ftpbox!mothost!schbbs!news
  3. From: Mark Seaborn <cms024@email.mot.com>
  4. Subject: qsort Getting  Warnings
  5. Content-Type: text/plain; charset=us-ascii
  6. Organization: MOTOROLA 
  7. Date: Thu, 25 Jan 1996 13:10:05 -0600
  8. Message-ID: <3107D58D.40D1@email.mot.com>
  9. X-Mailer: Mozilla 2.0b5 (Macintosh; I; 68K)
  10. Mime-Version: 1.0
  11. Content-Transfer-Encoding: 7bit
  12. Sender: news@schbbs.mot.com (SCHBBS News Account)
  13. Nntp-Posting-Host: 145.1.202.19
  14.  
  15. Can someone send me an example of how to call qsort() located in stdlib.h so I don't get warnings. The man page is 
  16. just not cutting it for me. 
  17.  
  18. I have
  19.  
  20. qsort((void*)summary[i].sortedList, (size_t)numberOfExamples, sizeof(float), attribCompare);
  21.  
  22. now summary[i].sortedList is a pointer to an array of floats of size numberOfExamples
  23. attribCompare is just a function that returns an integer. The program works but I hate
  24. warnings. Any ideas would be helpful.
  25. -- 
  26. *********************************************************************
  27. * Mark Seaborn          | ITTTools  : mseaborn@itthp1.comm.mot.com  *
  28. * Motorola              | KU        : mseaborn@hawk.cs.ukans.edu    *
  29. * 1301 E. Algonquin Rd. | Macintosh : cms024@email.mot.com          *
  30. * Schaumburg, IL. 60196 | Voice     : 708/538-5303                  *
  31. * Maildrop: IL02/Rm0442 | Fax       : 708/576-2619                  *
  32. *********************************************************************
  33. * AKA : Conan the Saute' Man                                        *
  34.